package cn.tedu.store.commons.pojo.product.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

@Data
public class HomeAdvertiseAddNewDTO implements Serializable {

    @ApiModelProperty(value = "轮播图名称")
    private String name;

    @ApiModelProperty(value = "图片url")
    private String pic;

    @ApiModelProperty(value = "上下线状态：0->下线；1->上线")
    private Integer status;

    @ApiModelProperty(value = "链接地址")
    private String url;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "排序序号")
    @Range(min = 1,max = 255,message = "必须在[1,255]区间内")
    private Integer sort;
}